<template>
  <div class="dialog-wrapper">
    <div class="dialog-panel">
      <slot name="header"></slot>
      <slot name="content"></slot>
      <slot name="footer"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: "DialogPanel"
};
</script>
<style lang="scss">
.dialog-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  .dialog-panel {
    margin: 15em auto;
    width: 30em;
    background-color: #fff;
    .dialog-header {
      padding: 1em;
      background-color: #409eff;
      font-size: 1.5rem;
      color: #fff;
      display: flex;
      justify-content: space-between;
      .close {
        background-color: transparent;
        border: none;
        color: #fff;
        font-size: 1.5rem;
      }
    }
    .dialog-content {
      padding: 2em;
    }
    .dialog-footer {
      padding: 1em;
      display: flex;
      justify-content: flex-end;
      border-top: 1px solid #eeeeee;
    }
  }
}
</style>
